import http from '@http/http'
// 查询
// export const saveFavourite = () => http.POST('/api/favouriteMovie/saveFavouriteMovie')

// 是否收藏
export const checkFilm = (userId, movieId) => {
  const url = `/api/filmCollection/check/${userId}/${movieId}`
  return http.GET(url)
}
export const rankMovie = (obj) => http.GET('/api/movie/rankMovie?type=' + obj)
export const collectFilm = (obj) => http.POST('/api/filmCollection/collections', obj)

export const chatAI = question => http.GET('/api/movie/QA?question=' + question)

export const movieQA = question => http.GET('/api/movie/movieQA?question=' + question)
